import request from '@/utils/request';

const prefix = '/question'

export function getQuestionListService(params) {
  return request({
    url: `${prefix}/semiLogin/list`,
    method: 'get',
    params
  });
}

export function getQuestionHotListService() {
  return request({
    url: `${prefix}/semiLogin/hot/list`,
    method: 'get'
  });
}



export function getQuestionDetailService(questionId, examId) {
  return request({
    url: `${prefix}/detail`,
    method: 'get',
    params: {
      questionId,
      examId
    }
  });
}

export function preQuestionService(questionId) {
  return request({
    url: `${prefix}/preQuestion`,
    method: 'get',
    params: {
      questionId
    }
  });
}

export function nextQuestionService(questionId) {
  return request({
    url: `${prefix}/nextQuestion`,
    method: 'get',
    params: {
      questionId
    }
  });
}